/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.ajz.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import org.hibernate.validator.constraints.Length;

/**
 * 液化气信息Entity
 * @author zzf
 * @version 2019-04-15
 */
@Table(name="ajz_liquefied_gas", alias="a", columns={
		@Column(name="id", attrName="id", label="液化气表id", isPK=true),
		@Column(name="liquefied_gas_nature", attrName="liquefiedGasNature", label="液化气性质"),
		@Column(name="liquefied_gas_contract", attrName="liquefiedGasContract", label="液化气合同"),
		@Column(name="base_id", attrName="baseId", label="对应公司的id"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AjzLiquefiedGas extends DataEntity<AjzLiquefiedGas> {
	
	private static final long serialVersionUID = 1L;
	private String liquefiedGasNature;		// 液化气性质
	private String liquefiedGasContract;		// 液化气合同
	private String baseId;		// 对应公司的id
	
	public AjzLiquefiedGas() {
		this(null);
	}

	public AjzLiquefiedGas(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="液化气性质长度不能超过 255 个字符")
	public String getLiquefiedGasNature() {
		return liquefiedGasNature;
	}

	public void setLiquefiedGasNature(String liquefiedGasNature) {
		this.liquefiedGasNature = liquefiedGasNature;
	}
	
	@Length(min=0, max=255, message="液化气合同长度不能超过 255 个字符")
	public String getLiquefiedGasContract() {
		return liquefiedGasContract;
	}

	public void setLiquefiedGasContract(String liquefiedGasContract) {
		this.liquefiedGasContract = liquefiedGasContract;
	}
	
	@Length(min=0, max=64, message="对应公司的id长度不能超过 64 个字符")
	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}
	
}